package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Share;
import com.net.tkc.pro.impl.ShareImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ShareService implements ShareImpl{
    @Resource
    ShareImpl shareimpl;

    @Override
    public int addShare(Share share) {
        return shareimpl.addShare(share);
    }

    @Override
    public List<Share> getPostList(int uid) {
        return shareimpl.getPostList(uid);
    }

    @Override
    public List<Share> getUserList(int pid) {
        return shareimpl.getUserList(pid);
    }
}
